package cn.ocean.org.mapper;

import cn.ocean.org.domain.Department;
import cn.ocean.org.query.DepartmentQuery;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper
public interface DepartmentMapper {
    // 查询所有
    List<Department> loadAllDep();
    // 根据Id查询
    Department getByIdDep(Long id);
    // 根据id删除
    void delDep(Long id);
    // 根据id修改
    void updateDep(Department department);
    // 新增
    void addDep(Department department);
    // 根据高级查询条件分页总条数
    Integer queryCount(DepartmentQuery departmentQuery);
    // 分页加高级查询
    List<Department> queryData(DepartmentQuery departmentQuery);


}
